{extend name="layout/goods"/}
{block name="content"}
<header class="wy-header">
    <a href="javascript:history.back(-1);"><div class="wy-header-icon-back"><span></span></div></a>
    <div class="wy-header-title">购物车</div>
</header>
<div class="weui-content">
    <!-- <div class="weui-panel weui-panel_access">
        <div class="weui-panel__hd"><span>江苏蓝之蓝旗舰店</span><a href="javascript:;" class="wy-dele"></a></div>
        <div class="weui-panel__bd">
            <div class="weui-media-box_appmsg pd-10">
                <div class="weui-media-box__hd check-w weui-cells_checkbox">
                    <label class="weui-check__label" for="cart-pto4">
                        <div class="weui-cell__hd cat-check"><input type="checkbox" class="weui-check" name="cartpro" id="cart-pto4"><i class="weui-icon-checked"></i></div>
                    </label>
                </div>
                <div class="weui-media-box__hd"><a href="pro_info.html"><img class="weui-media-box__thumb" src="upload/pro3.jpg" alt=""></a></div>
                <div class="weui-media-box__bd">
                    <h1 class="weui-media-box__desc"><a href="pro_info.html" class="ord-pro-link">蓝之蓝蓝色瓶装经典Q7浓香型白酒500ml52度高端纯粮食酒2瓶装包邮</a></h1>
                    <p class="weui-media-box__desc">规格：<span>红色</span>，<span>23</span></p>
                    <div class="clear mg-t-10">
                        <div class="wy-pro-pri fl">¥<em class="num font-15">296.00</em></div>
                        <div class="pro-amount fr"><div class="Spinner"></div></div>
                    </div>
                </div>
            </div>
        </div>
    </div> -->
</div>
<!--底部导航-->
<div class="foot-black"></div>
<div class="weui-tabbar wy-foot-menu">
    <div class="npd cart-foot-check-item weui-cells_checkbox allselect">
        <label class="weui-cell allsec-well weui-check__label" for="all">
            <div class="weui-cell__hd">
                <input type="checkbox" class="weui-check" name="all-sec" id="all">
                <i class="weui-icon-checked"></i>
            </div>
            <div class="weui-cell__bd">
                <p class="font-14">全选</p>
            </div>
        </label>
    </div>
    <div class="weui-tabbar__item  npd">
        <p class="cart-total-txt">合计：<i>￥</i><em class="num font-16" id="zong1">0.00</em></p>
    </div>
    <a href="{:url('order/info')}" class="red-color npd w-90 t-c">
        <p class="promotion-foot-menu-label">去结算</p>
    </a>
</div>
{/block}

{block name="script"}
<script type="text/javascript" src="__CDN__/assets/js/jquery.Spinner.js"></script>
<script type="text/javascript">
$(function(){
    $(".Spinner").Spinner({value:1, len:3, max:999});
});

$(document).ready(function () {
    $(".allselect").click(function () {
        if($(this).find("input[name=all-sec]").prop("checked")){
            $("input[name=cartpro]").each(function () {
                $(this).prop("checked", true);
            });

        }
        else
        {
            $("input[name=cartpro]").each(function () {
                if ($(this).prop("checked")) {
                    $(this).prop("checked", false);
                } else {
                    $(this).prop("checked", true);
                }
            });

        }

    });

});
</script>
<script>
$(document).on("click", ".wy-dele", function() {
    $.confirm("您确定要把此商品从购物车删除吗?", "确认删除?", function() {
        $.toast("删除成功!");
    }, function() {
        //取消操作
    });
});
</script>
{/block}
